package day5;

import java.io.Serializable;

/**
 * @author oldliu
 * @since 1.0
 */
public class Student implements Serializable {
    private String name;
    private Sex sex;
    public Student(){
        System.out.println("Student的构造方法");
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                '}';
    }
}
